<script setup lang="ts">
definePageMeta({ layout: "admin" });

let syncClick = () => {
  console.log("开始同步");
  $api("/sync").then((res) => {
    console.log(res);
  });
};

onMounted(async () => {});
</script>

<template>
  <AdminContainer>
    <template #header> </template>
    <div>
      单击按钮开始同步！
      <br />
      <el-button @click="syncClick()">Default</el-button>
    </div>
    <template #footer> </template>
  </AdminContainer>
</template>
